#ifndef INCLUDE_APHW_RECORD_HPP
#define INCLUDE_APHW_RECORD_HPP

#include <boost/python.hpp>
#include <boost/shared_ptr.hpp>
#include <ham/hamsterdb.h>

namespace aphw
{

class GetRecord
{
public:
    GetRecord();

    ham_u32_t flags() const;
    ham_record_t* rec();
    boost::python::object data();

private:
    struct Body;
    boost::shared_ptr<Body> body_;
};

class SetRecord
{
public:
    SetRecord(boost::python::object);
    
    ham_u32_t flags() const;
    ham_record_t* rec();

private:
    struct Body;
    boost::shared_ptr<Body> body_;
};

void init_Record();

}

#endif
